package com.ygqh.baby.ao;

/**
 * 定时任务方法名
 *
 * @author admin
 */
public enum TaskMethod {
    //旺店通标准版 已弃用
    SyncSkuStockTask(10, "同步商品库存", "minute"),
    orderStatus4Send(20, "同步订单发货状态", "minute"),
    syncStockOrderTask(60, "同步旺店通数据到本地", "hour"),
    syncStockInTask(60, "同步旺店通入库单到本地", "hour"),

    PreBalanceTask(10, "预收入", "minute"),
    PreIncomeToBalanceV2(1, "预收入转可提现", "day"),
    PreIncomeToBalance(1, "预收入转可提现", "day"),
    SendGrowthFundMsg(5, "成长基金统一到账提醒", "minute"),
    CheckBalanceToBalanceTask(1, "预收入转可提现", "day"),
    /**
     * 统计相关
     */
    ChannelScan(5, "统计渠道扫码数和注册数", "minute"),
    StatisticsOrderByDay(1, "统计每日订单", "day"),
    StatisticsChannelByDay(1, "统计每日渠道", "day"),
    AffiliateUserReport(1, "代理用户耕耘报表", "day"),
    AffiliateUserReportV2(10, "代理用户耕耘报表", "minute"),
    CalculateAddedUsers(1, "每日用户统计", "day"),
    StatisticalSkuSaleCount(10, "每日商品销售统计", "minute"),
    StatisticsWdtOrder(10, "统计旺店通每日订单", "minute"),
    StatisticsOrderByMinute(10, "统计每日订单", "minute"),

    OrderStatusForSuccessTask(1, "订单发货后7天自动完成", "day"),
    ReturnOrderForCompleteTask(1, "换货单7天后自动完成", "day"),
    ReturnOrderForCancelTask(60, "退换货单5内未提交退货自动取消", "hour"),
    LsOrderPushTask(5, "什么值得去买推送订单", "minute"),
    GroupOrderIncompleteReminder(5, "建团超过一小时未完成提醒", "minute"),
    SendKanJiaInvitation(5, "砍价最后一小时提醒", "minute"),

    GroupOrderComplete(5, "完成拼团", "minute"),
    MonitorPushOrderToWDT(1, "监控支付订单推送情况", "day"),

    SyncLogistics(10, "同步订单发货状态", "minute"),
    SyncWDTOrder(5, "同步旺店通订单", "minute"),
    LoadWDTOrder(30, "同步旺店通订单到本地qyb（全渠道）", "minute"),
    SyncStockIn(60, "同步旺店通入库单到本地qyb", "hour"),
    SyncStockOut(60, "同步旺店通出库单到本地qyb", "hour"),
    SyncSkuStock(5, "同步商品库存", "minute"),

    LoadNgmmOrder(60, "同步年糕妈妈订单到本地", "hour"),

    GiveCouponToForeverUser(10, "新用户下单反补推荐用户优惠券", "minute"),
    GiveCardCouponToOrderSource(10, "新用户下单反补推荐用户卡券", "minute"),

    SendMallWithOrderExpress(1, "发送指定用户物流信息到指定邮箱", "day"),
    SendPreSaleForRemind(1, "每日预售通知", "day"),

    SendSubscribeMsg(1, "发送订阅消息", "day"),
    ChangeProductPriceBySecond(1, "秒杀活动更新商品价格", "day"),
    SendCustomerNewsMsg(1, "微信客服公告消息", "day"),
    StatisticsSupplierOrder(1, "按商家统计订单", "day"),
    StatisticsSupplierOrderFromKids(1, "按商家统计新世界订单", "day"),
    StatisticsOrderFromKids(10, "同步新世界订单统计数据", "minute"),


    CheckPromotionTags(20, "检查促销标记服务", "minute"),

    CancelBookRecord(1, "取消活动订单", "day"),
    RemindCardCouponOver(1, "卡券到期提醒", "day"),

    SyncAllSkuStock(1, "同步所有SKU库存", "day"),
    SendWDTSalesReportMail(7, "发送旺店通销售数据邮件", "day");
    /**
     * 截取随机串长度
     */
    private Integer code;
    /**
     * 状态名称
     */
    private String title;

    private String intervalType;

    TaskMethod(Integer code, String title, String intervalType) {
        this.code = code;
        this.title = title;
        this.intervalType = intervalType;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getIntervalType() {
        return intervalType;
    }

    public void setIntervalType(String intervalType) {
        this.intervalType = intervalType;
    }

}
